username="python"
passwd="password"
count=0
while True:
    name=input("please input your username:")
    password=input("please input your password:")
    if username==name and password==passwd:
        print("login successfully,your username:{} your password {}".format(name,password))
        break
    else:
        print("your username or password is wrong,please retype again.")
        count+=1
        if count>=3:
            break